home *** CD-ROM | disk | FTP | other *** search
- Path: news.internex.net.au!usenet
- From: sultan@connexus.apana.org.au (Jon Hornstein)
- Newsgroups: comp.lang.c++
- Subject: Re: string class in STL?
- Date: Mon, 08 Apr 1996 20:54:48 GMT
- Organization: connexus.apana.org.au
- Message-ID: <4ka2t9$nrv@preeda.internex.net.au>
- References: <4k53js$i4o@cloner2.ix.netcom.com>
- NNTP-Posting-Host: dialin-17.internex.net.au
- X-Newsreader: Forte Free Agent 1.0.82
-
- As far as I know the string class generally gets bundled in with the
- other compiler specific collection classes and not with STL.
-
- STL is more about manipulating with generic algorithms classes of data
- and not specifying specific instances of one such class like for
- example the string/String class.
-
- Jon
-
- VanCLy@ix.netcom.com (Van Chinh Ly) wrote:
-
- >Is there a 'string' class in the STL?
-
- >I was enrolled in an STL course, couldn't make it,
- >got the course materials afterwards, read it, followed
- >the examples on one of the slides:
-
- >#include "map.h"
- >#include "bstring.h"
-
- >int main()
- >{
- > map<string, int, less<string>> name_age;
-
- > name_age["Some name"] = 14;
-
- > cout << "Some name's value = " << name_age["Some name"] << endl;
-
- > return 0;
- >}
-
-
-
- >First of all, "bstring.h" is not one of my STL *.h files. Secondly,
- >I performed a "grep" command through all the header files but couldn't
- >find any "string" class.
-
- >Can someone help me?
-
- >Van
-
-
-